package com.loveyukari.model;

import java.util.Date;

/**
*
*yangshaohua
*2016年12月27日下午2:06:23
**/
public class Room {

	private Integer id;
	private Integer cateId;
	private String cateName;
	private String roomName;
	private int roomStatus;
	private String ownerName;
	private int online;
	private String ownerWeight;
	private int fansNum;
	private boolean homePageStatus;
	private Date startTime;
	private String thumb;

	public String getThumb() {
		return thumb;
	}

	public void setThumb(String thumb) {
		this.thumb = thumb;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public boolean isHomePageStatus() {
		return homePageStatus;
	}

	public void setHomePageStatus(boolean homePageStatus) {
		this.homePageStatus = homePageStatus;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getCateId() {
		return cateId;
	}

	public void setCateId(Integer cateId) {
		this.cateId = cateId;
	}

	public String getCateName() {
		return cateName;
	}

	public void setCateName(String cateName) {
		this.cateName = cateName;
	}

	public String getRoomName() {
		return roomName;
	}

	public void setRoomName(String roomName) {
		this.roomName = roomName;
	}

	public int getRoomStatus() {
		return roomStatus;
	}

	public void setRoomStatus(int roomStatus) {
		this.roomStatus = roomStatus;
	}

	public String getOwnerName() {
		return ownerName;
	}

	public void setOwnerName(String ownerName) {
		this.ownerName = ownerName;
	}

	public int getOnline() {
		return online;
	}

	public void setOnline(int online) {
		this.online = online;
	}

	public String getOwnerWeight() {
		return ownerWeight;
	}

	public void setOwnerWeight(String ownerWeight) {
		this.ownerWeight = ownerWeight;
	}

	public int getFansNum() {
		return fansNum;
	}

	public void setFansNum(int fansNum) {
		this.fansNum = fansNum;
	}

	@Override
	public boolean equals(Object o) {
		if (this == o) return true;
		if (o == null || getClass() != o.getClass()) return false;

		Room room = (Room) o;

		if (roomStatus != room.roomStatus) return false;
		if (online != room.online) return false;
		if (fansNum != room.fansNum) return false;
		if (homePageStatus != room.homePageStatus) return false;
		if (id != null ? !id.equals(room.id) : room.id != null) return false;
		if (cateId != null ? !cateId.equals(room.cateId) : room.cateId != null) return false;
		if (cateName != null ? !cateName.equals(room.cateName) : room.cateName != null) return false;
		if (roomName != null ? !roomName.equals(room.roomName) : room.roomName != null) return false;
		if (ownerName != null ? !ownerName.equals(room.ownerName) : room.ownerName != null) return false;
		if (ownerWeight != null ? !ownerWeight.equals(room.ownerWeight) : room.ownerWeight != null) return false;
		return startTime != null ? startTime.equals(room.startTime) : room.startTime == null;
	}

	@Override
	public int hashCode() {
		int result = id != null ? id.hashCode() : 0;
		result = 31 * result + (cateId != null ? cateId.hashCode() : 0);
		result = 31 * result + (cateName != null ? cateName.hashCode() : 0);
		result = 31 * result + (roomName != null ? roomName.hashCode() : 0);
		result = 31 * result + roomStatus;
		result = 31 * result + (ownerName != null ? ownerName.hashCode() : 0);
		result = 31 * result + online;
		result = 31 * result + (ownerWeight != null ? ownerWeight.hashCode() : 0);
		result = 31 * result + fansNum;
		result = 31 * result + (homePageStatus ? 1 : 0);
		result = 31 * result + (startTime != null ? startTime.hashCode() : 0);
		return result;
	}
}
